package com.A21.GuoSai.demo.service_entity.entity.workflow;

import com.A21.GuoSai.demo.service_entity.utils.MyTypeUtils;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class DynamicVarValuePojo {
    //    工作流Id
    private String flowId;

    /*private Integer atomId;
    //    原子服务名
    private String atomName;*/
    //    参数名
    private String d_name;

    private String type;

    private String varDesc;

    private Class <? > typeClass;

    public Class<?> getTypeClass() {
        return typeClass;
    }

    public void setTypeClass(Class<?> typeClass) {
        this.typeClass = typeClass;
        this.type=this.typeClass.getCanonicalName();
    }

    public String getType() {
        return type;
    }

    public void setType(String type) throws ClassNotFoundException {
        this.type=type;
        this.typeClass = Class.forName(type);
    }
}
